package com.jht.pj.sys.service.impl;

import com.jht.pj.sys.dao.SingerDao;
import com.jht.pj.sys.pojo.Singer;
import com.jht.pj.sys.service.SingerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SingerServiceImpl implements SingerService {

    @Autowired
    private SingerDao singerDao;

    @Override
    public List<Singer> findSinger() {
        return singerDao.findSinger();
    }

    @Override
    public List<Singer> findSingerById(Integer id) {
        return null;
    }

    @Override
    public List<Singer> findSingerByName(String name) {
        return null;
    }

    @Override
    public String findSingerNameById(Integer id) {
        return singerDao.findSingerNameById(id);
    }

    @Override
    public int findSingerIdByName(String name) {
        return 0;
    }

    @Override
    public int insertSinger(Singer entity) {
        return singerDao.insertSinger(entity);
    }
}
